package week5;

public class q2 {
    public static void main(String[] args) {
        for(int i=2;i<100;i++){
            if(i==2){
                System.out.print(2 + " ");
            }
            for(int j=2;j<i;j++){
                if(i%j==0){
                     break;
                }else if(j==i-1){
                    System.out.print(i + " ");
                }
            }
        }
    }
}
